// ScatPltPara.h : header file
//

#ifndef __SCATPLTPARA_H__
#define __SCATPLTPARA_H__

/////////////////////////////////////////////////////////////////////////////
// CScatPltPara dialog
#include "amsEdit.h"
#include "XMLDialog.h"

class CDataTable;
class C2DBaseView;
class CdmDBBase;
#include "StatGraph.h"
#include "afxwin.h"
class CScatPltPara : public CXMLDialog
{
public:
// 	C2DBaseView * m_p2dview;
	CGeoStatGraph* m_StatGraphObj;
	GsDiscPnt* m_DiscPnts;
	GsDiscPnt* m_DiscPnts1;

// Construction
public:
	CScatPltPara(CWnd* pParent = NULL);
	~CScatPltPara();

// Dialog Data
	//{{AFX_DATA(CScatPltPara)
	enum { IDD = IDD_SCATPLT1 };
	CAMSNumericEdit	m_edTmax;
	CAMSNumericEdit	m_edTmin;
	CAMSNumericEdit	m_edNth;
	CAMSNumericEdit	m_edGmin;
	CAMSNumericEdit	m_edGmax;
	CAMSNumericEdit	m_edBsize;
	CAMSNumericEdit	m_edPminy;
	CAMSNumericEdit	m_edPminx;
	CAMSNumericEdit	m_edPmaxy;
	CAMSNumericEdit	m_edPmaxx;
	CEdit	m_eddatafl;
	CBCGPComboBox	m_scaley;
	CStatic	m_stMinx;
	CStatic	m_stMiny;
	CStatic	m_stMaxy;
	CStatic	m_stMaxx;
	CBCGPComboBox	m_scalex;
	CButton	m_pautoy;
	CButton	m_pautox;
	CBCGPComboBox	m_icy;
	CBCGPComboBox	m_icx;
	CBCGPComboBox	m_i3;
	CString	m_datafl;
	CString	m_title;
	int		m_n3;
	int		m_nCx;
	int		m_nCy;
	BOOL	m_bAtuoX;
	BOOL	m_bAutoY;
	//}}AFX_DATA
	float	m_bsize;
	float	m_gmax;
	float	m_gmin;
	long	m_nth;
	float	m_pmaxx;
	float	m_pmaxy;
	float	m_pminx;
	float	m_pminy;
	float	m_tmax;
	float	m_tmin;


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CScatPltPara)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL
protected:
	void ReadNode();
	void WriteNode();
	void AllDataSetWindowtext();
	bool IsFilterField(CString fldname);
	void OpenTablefile();
	void ChangeScInputfile();

	void ShowHighDlg(bool bSHow);
	bool m_bShow;
// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CScatPltPara)
	virtual BOOL OnInitDialog();
	afx_msg void OnPautox();
	afx_msg void OnPautoy();
	afx_msg void OnOpenfile();
	virtual void OnOK();
	afx_msg void OnChangeScBsize();
	afx_msg void OnChangeScGmax();
	afx_msg void OnChangeScGmin();
	afx_msg void OnChangeScNth();
	afx_msg void OnChangeScPmaxx();
	afx_msg void OnChangeScPmaxy();
	afx_msg void OnChangeScPminx();
	afx_msg void OnChangeScPminy();
	afx_msg void OnChangeScTmax();
	afx_msg void OnChangeScTmin();
	afx_msg void OnChangeScInputfile();
	afx_msg void OnScParaManager();
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

public:
	CDataTable* m_dataTable;	
	long m_recordnum;
	CdmDBBase *m_pDB;

	afx_msg void OnBnClickedBtnTop();
	CStatic m_wndStatic;
	bool m_bInitDlg;
};
#endif // __SCATPLTPARA_H__
